<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>软帝资源共享系统-我的资源</title>
</head>
<body>
	<%@ include file="header.jsp" %>
	<div class="container">	
		<!-- 搜索框 -->
		<form action="" class="form-inline text-right">
			<div class="form-group">
				<input type="text" class="form-control" placeholder="请输入关键字" />
			</div>
			<button class="btn btn-primary">搜索</button>
		</form>
		<br />
		<!-- 数据表格展示区 -->
		<table class="table table-striped table-hover">
			<tr>
				<th>序号</th>
				<th>资源名</th>
				<th>大小</th>
				<th>标签</th>
				<th>上传时间</th>
				<th>需要积分</th>
				<th>下载次数</th>
				<th>操作</th>
			</tr>
			<!-- 数据动态绑定区 start -->
			<c:forEach items="${files}" var="f">
			<tr>
				<td>${f.fid }</td>
				<td>${f.fname }</td>
				<td>${f.size }</td>
				<td>
					<c:forTokens items="${f.tags}" delims="," var="tag">
						<span class="label label-default">${tag}</span>
					</c:forTokens>
				</td>
				<td>${f.uploadTime }</td>
				<td><span class="label label-success">${f.saleIntergral}分</span></td>
				<td>${f.dcount}</td>
				<td>
					<button class="btn btn-link">删除</button>
				</td>
			</tr>
			</c:forEach>
			<!-- 数据动态绑定区 end -->
		</table>
		<!-- 分页链接 -->
		<div class="text-right">
			<%@ include file="pagination.jsp" %>
		</div>
	</div>
</body>
</html>